"use strict";

import * as TYPES from "./types";

export function userInfoAction(user_type, data) {
  switch (user_type) {
    case "user_account":
      return {
        type: TYPES.USER_ACCOUNT,
        data: data
      };

      break;
    case "user_password":
      return {
        type: TYPES.USER_PASSWORD,
        data: data
      };
      break;

    case "user_remember_password":
      return {
        type: TYPES.USER_PASSWORD_REMEMBER,
        data: data
      };
      break;

    case "user_userinfo":
      return {
        type: TYPES.USER_LOGIN_userInfo,
        data: data
      };
      break;

    default:
  }
}
